﻿<Window x:Class="Gao.Poker.App.LoginWin"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="用户登录" Width="1006" Height="496" AllowsTransparency="True"  
        WindowStartupLocation="CenterScreen" ResizeMode="NoResize" WindowStyle="None" Background="Transparent"
        MouseLeftButtonDown="Window_MouseLeftButtonDown">
    <Window.Resources>
        <RoutedUICommand x:Key="btnOk" Text="登录"/>
        <RoutedUICommand x:Key="btnCancel" Text="关闭"/>
    </Window.Resources>
    <Window.InputBindings>
        <KeyBinding Key="Enter" Command="{StaticResource btnOk}"/>
        <KeyBinding Key="Escape" Command="{StaticResource btnCancel}"/>
    </Window.InputBindings>
    <Window.CommandBindings>
        <CommandBinding Command="{StaticResource btnOk}" Executed="Login_Click"/>
        <CommandBinding Command="{StaticResource btnCancel}" Executed="Close_Click"/>
    </Window.CommandBindings>
    <Border CornerRadius="30" BorderThickness="1">
        <Border.Background>
            <ImageBrush ImageSource="skin/bg_login.png" Stretch="None"/>
        </Border.Background>

        <Canvas Background="Transparent">
            <TextBox Name="tbUser" VerticalContentAlignment="Center" Grid.ColumnSpan="2" Canvas.Left="394" Canvas.Top="207" Width="275" Height="30"/>
            <PasswordBox Name="tbPwd" VerticalContentAlignment="Center" Grid.ColumnSpan="2" Canvas.Left="394" Canvas.Top="260" Width="275" Height="30" RenderTransformOrigin="0.504,0.407"/>

            <Button Padding="5" Margin="0" Name="btnOk" Style="{DynamicResource Green}" Width="124" FontSize="16" Height="35" Click="Login_Click" Content="登录" Canvas.Left="363" Canvas.Top="320"/>
            <Button Padding="5" Margin="0" Name="btnCancel" Style="{DynamicResource Green}" Width="119" FontSize="16" Height="36" Click="Close_Click" Content="关闭" Canvas.Left="534" Canvas.Top="320"/>
        </Canvas>
    </Border>
   
</Window>
